package com.sq.universe.system.dao;

import com.sq.universe.base.dao.BaseDao;
import com.sq.universe.system.entity.DepartmentEntity;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface DepartmentDao extends BaseDao<DepartmentEntity> {

    /**
     * 查询所有子节点数据
     * @param departmentParentCode
     * @return
     */
    List<DepartmentEntity> queryChildren(@Param("departmentParentCode") String departmentParentCode);

    /**
     * 查询树装数据
     * @param departmentEntity
     * @return
     */
    List<DepartmentEntity> queryTree(DepartmentEntity departmentEntity);
}
